{% extends "base.html" %}
{% block title %}{{ title }}{% endblock %}
{% block content %}
    <h1>Contact us</h1>

    {% comment %}{% if form.errors %}
        <ul class="errorList">
            {% for error in form.message.errors %}
                <li>{{ error }}</li>
            {% endfor %}
        </ul>
    {% endif %}{% endcomment %}

    <form action="/forms/" method="post">{% csrf_token %}
        <div class="field">
            {{ form.subject.errors }}
            <label for="id_subject">Subject:</label>
            {{ form.subject }}
        </div>

        <div class="field">
            {{ form.email.errors }}
            <label for="id_email">email:</label>
            {{ form.email }}
        </div>

        <div class="field">
            {{ form.message.errors }}
            <label for="id_message">message:</label>
            {{ form.message }}
        </div>
        <input type="submit" value="Submit"/>
    </form>

{% endblock %}
{% block footer %}
{% endblock %}
